package edu.webtech.project.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class FooterLayout extends Composite {

	private static FooterLayoutUiBinder uiBinder = GWT
			.create(FooterLayoutUiBinder.class);

	interface FooterLayoutUiBinder extends UiBinder<Widget, FooterLayout> {
	}
	
	@UiField Anchor aAboutUs;
	@UiField Anchor aHelp;

	public FooterLayout() {
		initWidget(uiBinder.createAndBindUi(this));
	}
	
	@UiHandler("aAboutUs")
	void aAboutUsClick(ClickEvent e) {
		Window.alert("About us link clicked.");
	}
	
	@UiHandler("aHelp")
	void aHelpClick(ClickEvent e) {
		Window.alert("Help link clicked.");
	}

}
